#ifndef EDITORMENU_H
#define EDITORMENU_H

#include "Menu.h"
#include "WidgetList.h"
#include "WidgetButton.h"
#include "NewMapMenu.h"

class EditorMenu : public Menu
{
    public:
        EditorMenu(Application*);
        virtual void onLaunch();
        virtual void onEvent(sf::Event*);
        virtual void onRender(sf::RenderWindow*);
        virtual void onTick();
        virtual void onClose();
        virtual void openSubMenu(Engine*);
        virtual void closeSubMenu();
        virtual void onButtonPressed(WidgetButton*);
        virtual ~EditorMenu();
    protected:
        WidgetList* mapList;
        Engine* subEngine;
        NewMapMenu* newMap;

        WidgetButton* newMapButton;
        WidgetButton* backButton;

};

#endif // EDITORMENU_H
